package com.chenhao.springcloud.chenhaodatastructureservice.line;

/**
 * Description:测试专用
 *
 * @author chenhao
 * @date 2020/12/2 13:54
 */
public class Main {

    public static void main(String[] args) {
        // 调用泛型方法时候不能传入基本数据类型必须是包装类
        Integer [] data = {21,23,45,16,8,6,0};
        int res = LinearSearch.search(data,16);
        System.out.println(res);

        Student[] students = {new Student("Alice"),
        new Student("Bobo"),
        new Student("Charles")};
        Student bobo = new Student("Bobo");
        int res3 = LinearSearch.search(students,bobo);
        System.out.println(res3);
    }

}
